import http from "@/utils/http";

// 分页
export const goodsColorPage = (params)=> http.get('/merchantsapi/goods/color/page', params)

// 列表
export const goodsColorList = ()=> http.get('/merchantsapi/goods/color/list')

// 新增
export const goodsColorAdd = (data)=> http.post('/merchantsapi/goods/color/add', data)

// 删除
export const goodsColorDelete = (id)=> http.delete(`/merchantsapi/goods/color/delete/${id}`)

// 启用/禁用
export const goodsColorEnabled = (id, enabled)=> http.post(`/merchantsapi/goods/color/enabled/${id}/${enabled}`)